import { modifyWarningStatus} from '@/api/list'
export default {

  data(){
    return{
      show:false,
      row:{}
    }
  },
  methods:{
    openwarning(row){
      this.row=row
      this.show=true
    },
    close(formName) {
      this.show = false
      formName.resetFields()
    },
    submit({ formName, remark,id }) {
      let that = this
      formName.validate((valid) => {
        if (valid) {
          this.show = false
          modifyWarningStatus({remark:remark,id:id}).then(response => {
            that.fetchData(this.listQuery)
          })
        } else {
          console.log('error submit!!')
          return false
        }
      })
    },
  }
}
